
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:md5_sm2_encryption/sunvua_encrypation_utils.dart';

class Md5Sm2Encryption {
  static const MethodChannel _channel =
      const MethodChannel('md5_sm2_encryption');

  static Future<String> get platformVersion async {
    final String version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static Future<SunvuaEncrypationResponse>  encryption({String content="",String privateKey="",String publicKey="",int encryptiontype=0,}){
    var repos=SunvuaEncrypationRequest();
    repos.content=content;
    repos.privateKey=privateKey;
    repos.publicKey=publicKey;
    repos.encryptiontype=encryptiontype;


    return SunvuaEncrypationApi().sEncrypation(repos);
  }
}
